Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed resolution of some language variables in permissions #4676

Merged
merged 2 commits into from
Jun 22, 2022

Conversation

schmitz-ilias
Copy link
Contributor

Fixed the resolution of language variables in the permissions, see https://mantis.ilias.de/view.php?id=32909. This includes the name of custom roles from plugins, the name of all roles in the log, and the name of custom operations from plugins in the permissions table.

Copy link
Contributor

@smeyer-ilias smeyer-ilias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @schmitz-ilias for fixing this.
Please have a look at the comments, there are only two minor issues.

@@ -325,7 +325,7 @@ protected function readRoleProperties(ilObjRole $role)

$rbacreview = $DIC['rbacreview'];

$data['title'] = $role->getTitle();
$data['title'] = $role->_getTranslation($role->getTitle());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change this to a static call, since the method is static: ilObjRole::_getTranslation(...)

@@ -46,6 +46,15 @@ public function __construct($a_id = 0, $a_call_by_reference = false)
}


/**
* return translated title for autogenerated templates
* @return string
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the phpdoc-comment (\return string), since it does not provide additional information.

Copy link
Contributor

@smeyer-ilias smeyer-ilias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@smeyer-ilias smeyer-ilias merged commit 5f10f96 into ILIAS-eLearning:release_7 Jun 22, 2022
smeyer-ilias added a commit that referenced this pull request Jun 22, 2022
fixed resolution of some language variables in permissions
smeyer-ilias added a commit that referenced this pull request Jun 23, 2022
fixed resolution of some language variables in permissions
@iljalukin
Copy link
Contributor

This PR causes a change in the display of the title in the "Edit Properties" dialog of the role.
Previously, the role title was displayed there in the form il_crs_admin_12345 and could be used in further workflows such as assigning the local role when creating registration codes.
Currently, the translated title "Course Administrator" is displayed there and you have no way to get to the role title.
Is the change of displaying the title really intended and necessary at this point?

@schmitz-ilias
Copy link
Contributor Author

Hi @iljalukin, I talked to @smeyer-ilias about the issue you brought up. We propose to not revert to the previous behavior, but instead to add the role title in the form il_crs_admin_12345 in brackets to the end of the title in the header of the role GUI.
I will implement this in the next few days and link the PR here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants